def count_binary(n):
    count = 0
    for i in range(64):
        if n & (1<<i):
            count += 1
    return count

test_number = int(input("请输入一个整数: "))
print(f"该数对应的二进制为：{bin(test_number)}")
print(f"{test_number} 的二进制表示中包含的1的个数是: {count_binary(test_number)}")
